package com.ctrip.ibu.member.common.util;


import java.util.Random;

/**
 * @author he.shaorong
 * @create 2023/3/27 18:02
 * @since 1.0.0
 */
public class NumberUtil {

    private static final Random RANDOM = new Random();


    /**
     * 获得0-size之间的随机数
     *
     * @param size
     * @return
     */
    public static int getRandom(int size) {
        int number = RANDOM.nextInt(10 * size);
        return number / 10;
    }
}
